API Docs
To get started using the Spark API, please take the following steps.
- Head to
[REMOVED: Get started]to get yourself an API key.
- Make a request to the following endpoint,
https://stats.filspark.com/miners/retrieval-success-rate/summarywith the following query parameters,
| Query Parameter | Description | Format | Example |
|---|---|---|---|
| from | The start date of the data to be aggregated over | yyyy-mm-dd | 2024-03-01 |
| to | The end date of the data to be aggregated over | yyyy-mm-dd | 2024-04-01 |
and the following request header.
| Query Parameter | Description | Format | Example |
|---|---|---|---|
| Authorization | “Bearer” + <The API key that you received in Step 1> | string | Bearer abcdef |
Using the example values in the above table, this will result in the following full request endpoint.
headers: Authorization: "Bearer <API Key>"
https://stats.filspark.com/miners/retrieval-success-rate/summary?from=2024-03-01&to=2024-04-01